package com.tong.cloud.example.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

import java.io.Serializable;
import java.util.Map;
@Data
@Configuration
@PropertySources(@PropertySource(value = "classpath:redis.properties", encoding = "UTF-8", ignoreResourceNotFound = true))
@ConfigurationProperties(prefix = "redis.expire")
public class MapProperties implements Serializable {
    private Map<String, Long> configs;
}
